package cn.yi.medicalsys.service.impl;
import java.util.List;

import cn.yi.medicalsys.dao.UserDao;
import cn.yi.medicalsys.dao.impl.UserDaoImpl;
import cn.yi.medicalsys.pojo.User;
import cn.yi.medicalsys.service.UserService;

public class UserServiceImpl implements UserService{
	UserDao user=new UserDaoImpl();
	
	@Override
	public User findUserByNo(Integer userno) {
		User use=null;
		try {
			use=user.findUserByNo(userno);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return use;
	}

	/**
	 * 显示根据用户编号uid来查询用户姓名和性别
	 */
	@Override
	public List<User> findUserByUid(Integer uid) {
		try {
			return user.findUserByUid(uid);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
}
